//Domain
//http://121.41.48.70:8002/
//Namespace
//Juse.Interface
//ClassName
//JSShop.BLL.Interface.BaseInfomation
//请勿修改上述接口信息
namespace Juse.Interface
{
    public class BaseInfomation : wnxd.Web.InterfaceBase
    {
        public BaseInfomation()
        {
            this.Domain = "http://120.27.140.51/";
            this.Namespace = "JSShop.BLL.Interface";
            this.ClassName = "BaseInfomation";
        }
        /// <summary>
        /// 获取部门列表
        /// </summary>
        public System.Collections.Generic.IList<JSShop.Model.aspnet_Roles> GetRolesList(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("A49FB1A0BAF591BF195C980F043CAEE7", strWhere);
            return (System.Collections.Generic.IList<JSShop.Model.aspnet_Roles>)r.TryConvert(typeof(System.Collections.Generic.IList<JSShop.Model.aspnet_Roles>));
        }
        /// <summary>
        /// 获取部门分页列表
        /// </summary>
        public JSShop.Model.DbQueryResultRoles GetRolesList(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("29565A5CB3C4EC61A5C1BD99A47E5E28", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryResultRoles)r.TryConvert(typeof(JSShop.Model.DbQueryResultRoles));
        }
        /// <summary>
        /// 增加一条部门数据
        /// </summary>
        public System.Boolean Add(JSShop.Model.aspnet_Roles model)
        {
            wnxd.javascript.json r = this.Run("81BF475218EE96FE7398386641F80D3C", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 修改一条部门数据
        /// </summary>
        public System.Boolean Update(JSShop.Model.aspnet_Roles model)
        {
            wnxd.javascript.json r = this.Run("47C3E55F9BA67B2A1896B1EA260CE8F2", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 得到一个部门对象实体
        /// </summary>
        public JSShop.Model.aspnet_Roles GetModel(System.Guid RoleId)
        {
            wnxd.javascript.json r = this.Run("659FEE52D9D3B8E76D5B788C47AD41DF", RoleId);
            return (JSShop.Model.aspnet_Roles)r.TryConvert(typeof(JSShop.Model.aspnet_Roles));
        }
        /// <summary>
        /// 删除一条部门数据
        /// </summary>
        public System.Boolean Delete(System.Guid RoleId)
        {
            wnxd.javascript.json r = this.Run("31050AB54816BEDFD962D2C6F8EDD650", RoleId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取部门及相应权限
        /// </summary>
        public System.Collections.Generic.IList<JSShop.Model.vw_Roles> GetRolesItemList(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("3E16EAAC65FBFA6DB45502DFA49EC6F0", strWhere);
            return (System.Collections.Generic.IList<JSShop.Model.vw_Roles>)r.TryConvert(typeof(System.Collections.Generic.IList<JSShop.Model.vw_Roles>));
        }
        /// <summary>
        /// 设置部门权限
        /// </summary>
        public System.Boolean SetUserRoles(System.Guid RoleId, JSShop.Model.JS_PrivilegeInRoles model)
        {
            wnxd.javascript.json r = this.Run("D1F72B42169F2DCEFECD2E274C7094C0", RoleId, model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取客服列表[后台]
        /// </summary>
        public System.Collections.Generic.IList<JSShop.Model.vw_JS_Kefu> GetKefuList(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("75E9F3603EC19B11AED91E0B419B56A7", strWhere);
            return (System.Collections.Generic.IList<JSShop.Model.vw_JS_Kefu>)r.TryConvert(typeof(System.Collections.Generic.IList<JSShop.Model.vw_JS_Kefu>));
        }
        /// <summary>
        /// 获取客服列表分页[后台]
        /// </summary>
        public JSShop.Model.DbQueryResultAllocationMan GetKefuList(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("924525AF89BD944D35492E99971D354F", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryResultAllocationMan)r.TryConvert(typeof(JSShop.Model.DbQueryResultAllocationMan));
        }
        /// <summary>
        /// [获取后台用户]
        /// </summary>
        public System.Collections.Generic.IList<JSShop.Model.JS_Manager> GetManagerUser(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("EC18FA38482F7859A3C9F39410E2131A", strWhere);
            return (System.Collections.Generic.IList<JSShop.Model.JS_Manager>)r.TryConvert(typeof(System.Collections.Generic.IList<JSShop.Model.JS_Manager>));
        }
        /// <summary>
        /// [获取后台用户试图列表]
        /// </summary>
        public System.Collections.Generic.IList<JSShop.Model.vw_JS_Manager> GetManagerVwManager(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("B49502EC339452D17B8AB5C16618B49D", strWhere);
            return (System.Collections.Generic.IList<JSShop.Model.vw_JS_Manager>)r.TryConvert(typeof(System.Collections.Generic.IList<JSShop.Model.vw_JS_Manager>));
        }
        /// <summary>
        /// [获取后台用户试图分页列表]
        /// </summary>
        public JSShop.Model.DbQueryResultvwManager GetManagerVwManager(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("6D6A7482658CA35E6F329BC49D0316A0", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryResultvwManager)r.TryConvert(typeof(JSShop.Model.DbQueryResultvwManager));
        }
        /// <summary>
        /// [根据用户Id获取后台用户Model]
        /// </summary>
        public JSShop.Model.JS_Manager GetManagerUserModel(System.Int32 UserId)
        {
            wnxd.javascript.json r = this.Run("D6175C28B41CCAFECB00E92F176257FB", UserId);
            return (JSShop.Model.JS_Manager)r.TryConvert(typeof(JSShop.Model.JS_Manager));
        }
        /// <summary>
        /// [根据用户名获取后台用户Model]
        /// </summary>
        public JSShop.Model.JS_Manager GetManagerUserModel(System.String UserName)
        {
            wnxd.javascript.json r = this.Run("6A8D7D50F1A0E5FE7FCC7D9A6F4412EE", UserName);
            return (JSShop.Model.JS_Manager)r.TryConvert(typeof(JSShop.Model.JS_Manager));
        }
        /// <summary>
        /// [添加后台用户]
        /// </summary>
        public System.Boolean AddManager(JSShop.Model.JS_Manager model, JSShop.Model.JS_UsersInRoles rolemodel)
        {
            wnxd.javascript.json r = this.Run("8B6D6972F635BDA42DA87980329EDF5D", model, rolemodel);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// [修改后台用户]
        /// </summary>
        public System.Boolean UpdateManager(JSShop.Model.JS_Manager model, JSShop.Model.JS_UsersInRoles rolemodel)
        {
            wnxd.javascript.json r = this.Run("3A62F6687AD991CFFFACFCA9AC41B4D1", model, rolemodel);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// [删除后台用户]
        /// </summary>
        public System.Boolean DelManager(System.String UserId)
        {
            wnxd.javascript.json r = this.Run("E88A81BCCEBE2D2B2C233464F91A4A84", UserId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// [是否存在该用户]
        /// </summary>
        public System.Boolean ExistsManager(System.String UserId, System.String UserName)
        {
            wnxd.javascript.json r = this.Run("D5BD178B69C126F4531E15E3D06F3B81", UserId, UserName);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// [获取用户权限]
        /// </summary>
        public System.String GetUserPrivilege(System.Int32 UserId)
        {
            wnxd.javascript.json r = this.Run("EA505D38E6DA266F3A0EF50DF3555DB5", UserId);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// [获取用户名称]
        /// </summary>
        public System.String GetUserRoleName(System.Int32 UserId)
        {
            wnxd.javascript.json r = this.Run("47E8B5C63F704D7BA2B45EB54506B5AA", UserId);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// [修改密码]
        /// </summary>
        public System.Boolean UpdatePwd(System.String UserId, System.String Password)
        {
            wnxd.javascript.json r = this.Run("99062309ABC977F4EABE9101FE19FB7E", UserId, Password);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// [执行sql]
        /// </summary>
        public System.Boolean ExecSql(System.String strSql)
        {
            wnxd.javascript.json r = this.Run("0427F7CFEC856BC4512B0AE0B3048EB3", strSql);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取日志分页列表
        /// </summary>
        public JSShop.Model.DbQueryResultLog GetLogList(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("C2CEAEE769C095C6DE0EDA911E5C91BC", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryResultLog)r.TryConvert(typeof(JSShop.Model.DbQueryResultLog));
        }
        /// <summary>
        /// 获取友情链接分页列表
        /// </summary>
        public JSShop.Model.DbQueryResultFriendLink GetFriendLinkList(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.Collections.Generic.Dictionary<System.String, System.String> dic)
        {
            wnxd.javascript.json r = this.Run("22F41EA47AE1A9B96EA543513E255C0E", pageIndex, pageSize, sortBy, dic);
            return (JSShop.Model.DbQueryResultFriendLink)r.TryConvert(typeof(JSShop.Model.DbQueryResultFriendLink));
        }
        /// <summary>
        /// 增加一条友情链接数据
        /// </summary>
        public System.Boolean AddFriendLink(JSShop.Model.Hishop_FriendlyLinks model)
        {
            wnxd.javascript.json r = this.Run("6DBBCD2CE334022BCD33545E64652F22", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 修改一条友情链接数据
        /// </summary>
        public System.Boolean UpdateFriendLink(JSShop.Model.Hishop_FriendlyLinks model)
        {
            wnxd.javascript.json r = this.Run("78CD9F9027255DDA491D7E06AD1471C2", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 得到一个友情链接对象实体
        /// </summary>
        public JSShop.Model.Hishop_FriendlyLinks GetModelFriendLink(System.Int32 LinkId)
        {
            wnxd.javascript.json r = this.Run("E5AF430B853E944C7EE5B0D2D1E34AEE", LinkId);
            return (JSShop.Model.Hishop_FriendlyLinks)r.TryConvert(typeof(JSShop.Model.Hishop_FriendlyLinks));
        }
        /// <summary>
        /// 删除一条友情链接数据
        /// </summary>
        public System.Boolean DeleteFriendLink(System.Int32 LinkId)
        {
            wnxd.javascript.json r = this.Run("57FCA3ABF11C7F25D6FB9FC7E71D73A2", LinkId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取友情链接列表
        /// </summary>
        public System.Collections.Generic.IList<JSShop.Model.vw_Hishop_FriendlyLinks> GetFriendLinkList(System.Collections.Generic.Dictionary<System.String, System.String> dic)
        {
            wnxd.javascript.json r = this.Run("5E5FAADDDF5298C899F8445BB9EDE73E", dic);
            return (System.Collections.Generic.IList<JSShop.Model.vw_Hishop_FriendlyLinks>)r.TryConvert(typeof(System.Collections.Generic.IList<JSShop.Model.vw_Hishop_FriendlyLinks>));
        }
        /// <summary>
        /// 获取广告分页列表
        /// </summary>
        public JSShop.Model.DbQueryResultAdvert GetAdvertList(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.Collections.Generic.Dictionary<System.String, System.String> dic)
        {
            wnxd.javascript.json r = this.Run("634C5E1768A6D19C77E9E89D3C393D1B", pageIndex, pageSize, sortBy, dic);
            return (JSShop.Model.DbQueryResultAdvert)r.TryConvert(typeof(JSShop.Model.DbQueryResultAdvert));
        }
        /// <summary>
        /// 增加一条广告数据
        /// </summary>
        public System.Boolean AddAdvert(JSShop.Model.js_AdvertisingManage model)
        {
            wnxd.javascript.json r = this.Run("783F44A51DCA95D147B80221E408012E", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 修改一条广告数据
        /// </summary>
        public System.Boolean UpdateAdvert(JSShop.Model.js_AdvertisingManage model)
        {
            wnxd.javascript.json r = this.Run("1341648A0402A6E3D62B57F42E6BEE5C", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 得到一个广告对象实体
        /// </summary>
        public JSShop.Model.js_AdvertisingManage GetModelAdvert(System.Int32 LinkId)
        {
            wnxd.javascript.json r = this.Run("CD0DF917BBCF1424AAA20CEFCD588F71", LinkId);
            return (JSShop.Model.js_AdvertisingManage)r.TryConvert(typeof(JSShop.Model.js_AdvertisingManage));
        }
        /// <summary>
        /// 删除一条广告数据
        /// </summary>
        public System.Boolean DeleteAdvert(System.Int32 LinkId)
        {
            wnxd.javascript.json r = this.Run("998142CF1478B2B07B5E8664D8047979", LinkId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
    }
}